﻿using DevExpress.XtraGrid.Demos.util;
using Luna小店.UC.款式异常;
using Luna小店.UC.门店下单.DTO;
using System;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Luna小店.DTO
{
    public class 订单导出DTO
    {
        public String ORDER_ID { get; set; } // 订单ID
        public String ORDER_NO { get; set; } // 订单号
        public String ORDER_NUMBER { get; set; } // 订单数量
        public String ORDER_DATE { get; set; } // 订单日期
        public String CUSTOM_NAME { get; set; } // 客户名称
        public String SHOP_NAME { get; set; } // 店名
        public String ORDER_DUE_DATE { get; set; }//交期
        public String ORDER_SHIPMENTS_DATE { get; set; } // 船期
        public String STYLE_ID { get; set; } // 款号 
        public String STYLE_NAME_CN { get; set; } // 款式
        public String STYLE_MAKE_TYPE { get; set; } // 缝制方式
        public String Style_FIT_CD { get; set; } // 版型
        public String MATERIAL_CODE { get; set; } // 面料品号
        public String MATERIAL_SPEC { get; set; } // 幅宽
        public String MATERIAL_STITCH { get; set; } // 面料针码
        public String MATERIAL_STYLE { get; set; } // 物料风格
        public String MATERIAL_WEAVE { get; set; }//物料织法
        public String MATERIAL_NAME_CN { get; set; }//物料描述名称
        public String STYLE_SIZE_CD { get; set; }   //  尺码
        public String REMARKS { get; set; } //  备注
        public Image picture { get; set; }//面料图片

        #region 量体值组
        public String 量体项目0 { get; set; }
        public String 量体项目1 { get; set; }
        public String 量体项目2 { get; set; }
        public String 量体项目3 { get; set; }
        public String 量体项目4 { get; set; }
        public String 量体项目5 { get; set; }
        public String 量体项目6 { get; set; }
        public String 量体项目7 { get; set; }
        public String 量体项目8 { get; set; }
        public String 量体项目9 { get; set; }
        public String 量体项目10 { get; set; }
        public String 量体项目11 { get; set; }
        public String 量体项目12 { get; set; }
        public String 量体项目13 { get; set; }
        public String 量体项目14 { get; set; }
        public String 量体项目15 { get; set; }
        public String 量体项目16 { get; set; }
        public String 量体项目17 { get; set; }
        public String 量体项目18 { get; set; }
        public String 量体项目19 { get; set; }
        public String 量体项目20 { get; set; }
        public String 量体项目21 { get; set; }
        public String 量体项目22 { get; set; }
        public String 量体项目23 { get; set; }
        public String 量体项目24 { get; set; }
        public String 量体项目25 { get; set; }
        public String 量体项目26 { get; set; }
        public String 量体项目27 { get; set; }
        public String 量体项目28 { get; set; }
        public String 量体项目29 { get; set; }
        public String 量体项目30 { get; set; }
        public String 量体项目31 { get; set; }
        public String 量体项目32 { get; set; }
        public String 量体项目33 { get; set; }
        public String 标准尺寸0 { get; set; }
        public String 标准尺寸1 { get; set; }
        public String 标准尺寸2 { get; set; }
        public String 标准尺寸3 { get; set; }
        public String 标准尺寸4 { get; set; }
        public String 标准尺寸5 { get; set; }
        public String 标准尺寸6 { get; set; }
        public String 标准尺寸7 { get; set; }
        public String 标准尺寸8 { get; set; }
        public String 标准尺寸9 { get; set; }
        public String 标准尺寸10 { get; set; }
        public String 标准尺寸11 { get; set; }
        public String 标准尺寸12 { get; set; }
        public String 标准尺寸13 { get; set; }
        public String 标准尺寸14 { get; set; }
        public String 标准尺寸15 { get; set; }
        public String 标准尺寸16 { get; set; }
        public String 标准尺寸17 { get; set; }
        public String 标准尺寸18 { get; set; }
        public String 标准尺寸19 { get; set; }
        public String 标准尺寸20 { get; set; }
        public String 标准尺寸21 { get; set; }
        public String 标准尺寸22 { get; set; }
        public String 标准尺寸23 { get; set; }
        public String 标准尺寸24 { get; set; }
        public String 标准尺寸25 { get; set; }
        public String 标准尺寸26 { get; set; }
        public String 标准尺寸27 { get; set; }
        public String 标准尺寸28 { get; set; }
        public String 标准尺寸29 { get; set; }
        public String 标准尺寸30 { get; set; }
        public String 标准尺寸31 { get; set; }
        public String 标准尺寸32 { get; set; }
        public String 标准尺寸33 { get; set; }
        public String 成衣尺寸0 { get; set; }
        public String 成衣尺寸1 { get; set; }
        public String 成衣尺寸2 { get; set; }
        public String 成衣尺寸3 { get; set; }
        public String 成衣尺寸4 { get; set; }
        public String 成衣尺寸5 { get; set; }
        public String 成衣尺寸6 { get; set; }
        public String 成衣尺寸7 { get; set; }
        public String 成衣尺寸8 { get; set; }
        public String 成衣尺寸9 { get; set; }
        public String 成衣尺寸10 { get; set; }
        public String 成衣尺寸11 { get; set; }
        public String 成衣尺寸12 { get; set; }
        public String 成衣尺寸13 { get; set; }
        public String 成衣尺寸14 { get; set; }
        public String 成衣尺寸15 { get; set; }
        public String 成衣尺寸16 { get; set; }
        public String 成衣尺寸17 { get; set; }
        public String 成衣尺寸18 { get; set; }
        public String 成衣尺寸19 { get; set; }
        public String 成衣尺寸20 { get; set; }
        public String 成衣尺寸21 { get; set; }
        public String 成衣尺寸22 { get; set; }
        public String 成衣尺寸23 { get; set; }
        public String 成衣尺寸24 { get; set; }
        public String 成衣尺寸25 { get; set; }
        public String 成衣尺寸26 { get; set; }
        public String 成衣尺寸27 { get; set; }
        public String 成衣尺寸28 { get; set; }
        public String 成衣尺寸29 { get; set; }
        public String 成衣尺寸30 { get; set; }
        public String 成衣尺寸31 { get; set; }
        public String 成衣尺寸32 { get; set; }
        public String 成衣尺寸33 { get; set; }
        public String 客户量体值0 { get; set; }
        public String 客户量体值1 { get; set; }
        public String 客户量体值2 { get; set; }
        public String 客户量体值3 { get; set; }
        public String 客户量体值4 { get; set; }
        public String 客户量体值5 { get; set; }
        public String 客户量体值6 { get; set; }
        public String 客户量体值7 { get; set; }
        public String 客户量体值8 { get; set; }
        public String 客户量体值9 { get; set; }
        public String 客户量体值10 { get; set; }
        public String 客户量体值11 { get; set; }
        public String 客户量体值12 { get; set; }
        public String 客户量体值13 { get; set; }
        public String 客户量体值14 { get; set; }
        public String 客户量体值15 { get; set; }
        public String 客户量体值16 { get; set; }
        public String 客户量体值17 { get; set; }
        public String 客户量体值18 { get; set; }
        public String 客户量体值19 { get; set; }
        public String 客户量体值20 { get; set; }
        public String 客户量体值21 { get; set; }
        public String 客户量体值22 { get; set; }
        public String 客户量体值23 { get; set; }
        public String 客户量体值24 { get; set; }
        public String 客户量体值25 { get; set; }
        public String 客户量体值26 { get; set; }
        public String 客户量体值27 { get; set; }
        public String 客户量体值28 { get; set; }
        public String 客户量体值29 { get; set; }
        public String 客户量体值30 { get; set; }
        public String 客户量体值31 { get; set; }
        public String 客户量体值32 { get; set; }
        public String 客户量体值33 { get; set; }
        public String 加减值0 { get; set; }
        public String 加减值1 { get; set; }
        public String 加减值2 { get; set; }
        public String 加减值3 { get; set; }
        public String 加减值4 { get; set; }
        public String 加减值5 { get; set; }
        public String 加减值6 { get; set; }
        public String 加减值7 { get; set; }
        public String 加减值8 { get; set; }
        public String 加减值9 { get; set; }
        public String 加减值10 { get; set; }
        public String 加减值11 { get; set; }
        public String 加减值12 { get; set; }
        public String 加减值13 { get; set; }
        public String 加减值14 { get; set; }
        public String 加减值15 { get; set; }
        public String 加减值16 { get; set; }
        public String 加减值17 { get; set; }
        public String 加减值18 { get; set; }
        public String 加减值19 { get; set; }
        public String 加减值20 { get; set; }
        public String 加减值21 { get; set; }
        public String 加减值22 { get; set; }
        public String 加减值23 { get; set; }
        public String 加减值24 { get; set; }
        public String 加减值25 { get; set; }
        public String 加减值26 { get; set; }
        public String 加减值27 { get; set; }
        public String 加减值28 { get; set; }
        public String 加减值29 { get; set; }
        public String 加减值30 { get; set; }
        public String 加减值31 { get; set; }
        public String 加减值32 { get; set; }
        public String 加减值33 { get; set; }
        #endregion

        #region 设计点
        public String 设计项目0 { get; set; }
        public String 设计项目1 { get; set; }
        public String 设计项目2 { get; set; }
        public String 设计项目3 { get; set; }
        public String 设计项目4 { get; set; }
        public String 设计项目5 { get; set; }
        public String 设计项目6 { get; set; }
        public String 设计项目7 { get; set; }
        public String 设计项目8 { get; set; }
        public String 设计项目9 { get; set; }
        public String 设计项目10 { get; set; }
        public String 设计项目11 { get; set; }
        public String 设计项目12 { get; set; }
        public String 设计项目13 { get; set; }
        public String 设计项目14 { get; set; }
        public String 设计项目15 { get; set; }
        public String 设计项目16 { get; set; }
        public String 设计项目17 { get; set; }
        public String 设计项目18 { get; set; }
        public String 设计项目19 { get; set; }
        public String 设计项目20 { get; set; }
        public String 设计项目21 { get; set; }
        public String 设计项目22 { get; set; }
        public String 设计项目23 { get; set; }
        public String 设计项目24 { get; set; }
        public String 设计项目25 { get; set; }
        public String 设计项目26 { get; set; }
        public String 设计项目27 { get; set; }
        public String 设计项目28 { get; set; }
        public String 设计项目29 { get; set; }
        public String 设计项目30 { get; set; }
        public String 设计项目31 { get; set; }
        public String 设计项目32 { get; set; }
        public String 设计项目33 { get; set; }
        public String 设计项目34 { get; set; }
        public String 设计内容0 { get; set; }
        public String 设计内容1 { get; set; }
        public String 设计内容2 { get; set; }
        public String 设计内容3 { get; set; }
        public String 设计内容4 { get; set; }
        public String 设计内容5 { get; set; }
        public String 设计内容6 { get; set; }
        public String 设计内容7 { get; set; }
        public String 设计内容8 { get; set; }
        public String 设计内容9 { get; set; }
        public String 设计内容10 { get; set; }
        public String 设计内容11 { get; set; }
        public String 设计内容12 { get; set; }
        public String 设计内容13 { get; set; }
        public String 设计内容14 { get; set; }
        public String 设计内容15 { get; set; }
        public String 设计内容16 { get; set; }
        public String 设计内容17 { get; set; }
        public String 设计内容18 { get; set; }
        public String 设计内容19 { get; set; }
        public String 设计内容20 { get; set; }
        public String 设计内容21 { get; set; }
        public String 设计内容22 { get; set; }
        public String 设计内容23 { get; set; }
        public String 设计内容24 { get; set; }
        public String 设计内容25 { get; set; }
        public String 设计内容26 { get; set; }
        public String 设计内容27 { get; set; }
        public String 设计内容28 { get; set; }
        public String 设计内容29 { get; set; }
        public String 设计内容30 { get; set; }
        public String 设计内容31 { get; set; }
        public String 设计内容32 { get; set; }
        public String 设计内容33 { get; set; }
        public String 设计内容34 { get; set; }
        #endregion

        #region 客户体态
        public String 性别 { get; set; }
        public String 年龄 { get; set; }
        public String 身高 { get; set; }
        public String 体重 { get; set; }
        public String 肩型 { get; set; }
        public String 体型 { get; set; }
        public String 背型 { get; set; }
        public String 腹型 { get; set; }
        #endregion
        public 订单导出DTO(DataRow dataRow订单, DataRow dataRow款式, DataRow dataRow面料, List<尺寸呈现dto> 尺寸呈现, List<DTODesignPoints> Dto设计点s, DTO客户体态 dto客户体态, Image pic) {
            this.ORDER_ID = dataRow订单["ORDER_ID"].ToString();
            this.ORDER_NO = dataRow订单["ORDER_NO"].ToString();
            this.ORDER_NUMBER = dataRow订单["ORDER_NUMBER"].ToString();
            this.ORDER_DATE = dataRow订单["ORDER_DATE"].ToString();
            this.CUSTOM_NAME = dataRow订单["CUSTOM_NAME"].ToString();
            this.SHOP_NAME = dataRow订单["SHOP_NAME"].ToString();
            this.ORDER_DUE_DATE = dataRow订单["ORDER_DUE_DATE"].ToString();
            this.ORDER_SHIPMENTS_DATE = dataRow订单["ORDER_SHIPMENTS_DATE"].ToString();
            this.STYLE_ID = dataRow订单["STYLE_ID"].ToString();
            this.REMARKS = dataRow订单["REMARKS"].ToString();

            this.STYLE_NAME_CN = dataRow款式["STYLE_NAME_CN"].ToString();
            this.STYLE_MAKE_TYPE = dataRow款式["MAKE_TYPE"].ToString();
            this.Style_FIT_CD = dataRow款式["Style_FIT_CD"].ToString();
            this.MATERIAL_CODE = dataRow面料["MATERIAL_CODE"].ToString();
            this.MATERIAL_SPEC = dataRow面料["MATERIAL_SPEC"].ToString();
            this.MATERIAL_STITCH = dataRow面料["MATERIAL_STITCH"].ToString();
            this.MATERIAL_STYLE = dataRow面料["MATERIAL_STYLE"].ToString();
            this.MATERIAL_NAME_CN = dataRow面料["MATERIAL_NAME_CN"].ToString();
            String WEAVE = "";
            String STYLE = "";
            if (dataRow面料["MATERIAL_WEAVE"].ToString() != String.Empty)
            {
                WEAVE = dataRow面料["WEAVE"].ToString();
            }
            if (dataRow面料["MATERIAL_STYLE"].ToString() != String.Empty)
            {
                STYLE = dataRow面料["STYLE"].ToString();
            }
            this.MATERIAL_WEAVE = STYLE + "/" + WEAVE;
            this.picture = pic;

            this.STYLE_SIZE_CD =
                dataRow款式["STYLE_SIZE_GROUP_CD"].ToString()
                + "/"
                + dataRow款式["STYLE_SIZE_CD"].ToString().Replace("IGS_GROUP_SIZE-", "").Replace("EGS_GROUP_SIZE-", "");

            this.build设计点(Dto设计点s);
            this.build尺寸(尺寸呈现);
            this.build客户体态(dto客户体态);
        }

        private void build设计点(List<DTODesignPoints> Dto设计点s) {
            try
            {
                this.设计项目0 = Dto设计点s[0].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[0].name))
                {
                    if (String.IsNullOrEmpty(Dto设计点s[0].optionValue))
                    {

                    }
                    this.设计内容0 = Dto设计点s[0].optionValue;
                }
                else
                {
                    this.设计内容0 = Dto设计点s[0].optionValue + ":" + Dto设计点s[0].name;
                }
            }
            catch { }
            try
            {
                this.设计项目1 = Dto设计点s[1].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[1].name))
                {
                    this.设计内容1 = Dto设计点s[1].optionValue;
                }
                else
                {
                    this.设计内容1 = Dto设计点s[1].optionValue + ":" + Dto设计点s[1].name;
                }
            }
            catch { }
            try
            {
                this.设计项目2 = Dto设计点s[2].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[2].name))
                {
                    this.设计内容2 = Dto设计点s[2].optionValue;
                }
                else
                {
                    this.设计内容2 = Dto设计点s[2].optionValue + ":" + Dto设计点s[2].name;
                }
            }
            catch { }
            try
            {
                this.设计项目3 = Dto设计点s[3].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[3].name))
                {
                    this.设计内容3 = Dto设计点s[3].optionValue;
                }
                else
                {
                    this.设计内容3 = Dto设计点s[3].optionValue + ":" + Dto设计点s[3].name;
                }
            }
            catch { }
            try
            {
                this.设计项目4 = Dto设计点s[4].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[4].name))
                {
                    this.设计内容4 = Dto设计点s[4].optionValue;
                }
                else
                {
                    this.设计内容4 = Dto设计点s[4].optionValue + ":" + Dto设计点s[4].name;
                }
            }
            catch { }
            try
            {
                this.设计项目5 = Dto设计点s[5].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[5].name))
                {
                    this.设计内容5 = Dto设计点s[5].optionValue;
                }
                else
                {
                    this.设计内容5 = Dto设计点s[5].optionValue + ":" + Dto设计点s[5].name;
                }
            }
            catch { }
            try
            {
                this.设计项目6 = Dto设计点s[6].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[6].name))
                {
                    this.设计内容6 = Dto设计点s[6].optionValue;
                }
                else
                {
                    this.设计内容6 = Dto设计点s[6].optionValue + ":" + Dto设计点s[6].name;
                }
            }
            catch { }
            try
            {
                this.设计项目7 = Dto设计点s[7].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[7].name))
                {
                    this.设计内容7 = Dto设计点s[7].optionValue;
                }
                else
                {
                    this.设计内容7 = Dto设计点s[7].optionValue + ":" + Dto设计点s[7].name;
                }
            }
            catch { }
            try
            {
                this.设计项目8 = Dto设计点s[8].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[8].name))
                {
                    this.设计内容8 = Dto设计点s[8].optionValue;
                }
                else
                {
                    this.设计内容8 = Dto设计点s[8].optionValue + ":" + Dto设计点s[8].name;
                }
            }
            catch { }
            try
            {
                this.设计项目9 = Dto设计点s[9].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[9].name))
                {
                    this.设计内容9 = Dto设计点s[9].optionValue;
                }
                else
                {
                    this.设计内容9 = Dto设计点s[9].optionValue + ":" + Dto设计点s[9].name;
                }
            }
            catch { }
            try
            {
                this.设计项目10 = Dto设计点s[10].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[10].name))
                {
                    this.设计内容10 = Dto设计点s[10].optionValue;
                }
                else
                {
                    this.设计内容10 = Dto设计点s[10].optionValue + ":" + Dto设计点s[10].name;
                }
            }
            catch { }
            try
            {
                this.设计项目11 = Dto设计点s[11].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[11].name))
                {
                    this.设计内容11 = Dto设计点s[11].optionValue;
                }
                else
                {
                    this.设计内容11 = Dto设计点s[11].optionValue + ":" + Dto设计点s[11].name;
                }
            }
            catch { }
            try
            {
                this.设计项目12 = Dto设计点s[12].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[12].name))
                {
                    this.设计内容12 = Dto设计点s[12].optionValue;
                }
                else
                {
                    this.设计内容12 = Dto设计点s[12].optionValue + ":" + Dto设计点s[12].name;
                }
            }
            catch { }
            try
            {
                this.设计项目13 = Dto设计点s[13].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[13].name))
                {
                    this.设计内容13 = Dto设计点s[13].optionValue;
                }
                else
                {
                    this.设计内容13 = Dto设计点s[13].optionValue + ":" + Dto设计点s[13].name;
                }
            }
            catch { }
            try
            {
                this.设计项目14 = Dto设计点s[14].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[14].name))
                {
                    this.设计内容14 = Dto设计点s[14].optionValue;
                }
                else
                {
                    this.设计内容14 = Dto设计点s[14].optionValue + ":" + Dto设计点s[14].name;
                }
            }
            catch { }
            try
            {
                this.设计项目15 = Dto设计点s[15].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[15].name))
                {
                    this.设计内容15 = Dto设计点s[15].optionValue;
                }
                else
                {
                    this.设计内容15 = Dto设计点s[15].optionValue + ":" + Dto设计点s[15].name;
                }
            }
            catch { }
            try
            {
                this.设计项目16 = Dto设计点s[16].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[16].name))
                {
                    this.设计内容16 = Dto设计点s[16].optionValue;
                }
                else
                {
                    this.设计内容16 = Dto设计点s[16].optionValue + ":" + Dto设计点s[16].name;
                }
            }
            catch { }
            try
            {
                this.设计项目17 = Dto设计点s[17].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[17].name))
                {
                    this.设计内容17 = Dto设计点s[17].optionValue;
                }
                else
                {
                    this.设计内容17 = Dto设计点s[17].optionValue + ":" + Dto设计点s[17].name;
                }
            }
            catch { }
            try
            {
                this.设计项目18 = Dto设计点s[18].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[18].name))
                {
                    this.设计内容18 = Dto设计点s[18].optionValue;
                }
                else
                {
                    this.设计内容18 = Dto设计点s[18].optionValue + ":" + Dto设计点s[18].name;
                }
            }
            catch { }
            try
            {
                this.设计项目19 = Dto设计点s[19].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[19].name))
                {
                    this.设计内容19 = Dto设计点s[19].optionValue;
                }
                else
                {
                    this.设计内容19 = Dto设计点s[19].optionValue + ":" + Dto设计点s[19].name;
                }
            }
            catch { }
            try
            {
                this.设计项目20 = Dto设计点s[20].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[20].name))
                {
                    this.设计内容20 = Dto设计点s[20].optionValue;
                }
                else
                {
                    this.设计内容20 = Dto设计点s[20].optionValue + ":" + Dto设计点s[20].name;
                }
            }
            catch { }
            try
            {
                this.设计项目21 = Dto设计点s[21].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[21].name))
                {
                    this.设计内容21 = Dto设计点s[21].optionValue;
                }
                else
                {
                    this.设计内容21 = Dto设计点s[21].optionValue + ":" + Dto设计点s[21].name;
                }
            }
            catch { }
            try
            {
                this.设计项目22 = Dto设计点s[22].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[22].name))
                {
                    this.设计内容22 = Dto设计点s[22].optionValue;
                }
                else
                {
                    this.设计内容22 = Dto设计点s[22].optionValue + ":" + Dto设计点s[22].name;
                }
            }
            catch { }
            try
            {
                this.设计项目23 = Dto设计点s[23].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[23].name))
                {
                    this.设计内容23 = Dto设计点s[23].optionValue;
                }
                else
                {
                    this.设计内容23 = Dto设计点s[23].optionValue + ":" + Dto设计点s[23].name;
                }
            }
            catch { }
            try
            {
                this.设计项目24 = Dto设计点s[24].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[24].name))
                {
                    this.设计内容24 = Dto设计点s[24].optionValue;
                }
                else
                {
                    this.设计内容24 = Dto设计点s[24].optionValue + ":" + Dto设计点s[24].name;
                }
            }
            catch { }
            try
            {
                this.设计项目25 = Dto设计点s[25].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[25].name))
                {
                    this.设计内容25 = Dto设计点s[25].optionValue;
                }
                else
                {
                    this.设计内容25 = Dto设计点s[25].optionValue + ":" + Dto设计点s[25].name;
                }
            }
            catch { }
            try
            {
                this.设计项目26 = Dto设计点s[26].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[26].name))
                {
                    this.设计内容26 = Dto设计点s[26].optionValue;
                }
                else
                {
                    this.设计内容26 = Dto设计点s[26].optionValue + ":" + Dto设计点s[26].name;
                }
            }
            catch { }
            try
            {
                this.设计项目27 = Dto设计点s[27].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[27].name))
                {
                    this.设计内容27 = Dto设计点s[27].optionValue;
                }
                else
                {
                    this.设计内容27 = Dto设计点s[27].optionValue + ":" + Dto设计点s[27].name;
                }
            }
            catch { }
            try
            {
                this.设计项目28 = Dto设计点s[28].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[28].name))
                {
                    this.设计内容28 = Dto设计点s[28].optionValue;
                }
                else
                {
                    this.设计内容28 = Dto设计点s[28].optionValue + ":" + Dto设计点s[28].name;
                }
            }
            catch { }
            try
            {
                this.设计项目29 = Dto设计点s[29].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[29].name))
                {
                    this.设计内容29 = Dto设计点s[29].optionValue;
                }
                else
                {
                    this.设计内容29 = Dto设计点s[29].optionValue + ":" + Dto设计点s[29].name;
                }
            }
            catch { }
            try
            {
                this.设计项目30 = Dto设计点s[30].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[30].name))
                {
                    this.设计内容30 = Dto设计点s[30].optionValue;
                }
                else
                {
                    this.设计内容30 = Dto设计点s[30].optionValue + ":" + Dto设计点s[30].name;
                }
            }
            catch { }
            try
            {
                this.设计项目31 = Dto设计点s[31].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[31].name))
                {
                    this.设计内容31 = Dto设计点s[31].optionValue;
                }
                else
                {
                    this.设计内容31 = Dto设计点s[31].optionValue + ":" + Dto设计点s[31].name;
                }
            }
            catch { }
            try
            {
                this.设计项目32 = Dto设计点s[32].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[32].name))
                {
                    this.设计内容32 = Dto设计点s[32].optionValue;
                }
                else
                {
                    this.设计内容32 = Dto设计点s[32].optionValue + ":" + Dto设计点s[32].name;
                }
            }
            catch { }
            try
            {
                this.设计项目33 = Dto设计点s[33].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[33].name))
                {
                    this.设计内容33 = Dto设计点s[33].optionValue;
                }
                else
                {
                    this.设计内容33 = Dto设计点s[33].optionValue + ":" + Dto设计点s[33].name;
                }
            }
            catch { }
            try
            {
                this.设计项目34 = Dto设计点s[34].itemTypeNameCn;
                if (String.IsNullOrEmpty(Dto设计点s[34].name))
                {
                    this.设计内容34 = Dto设计点s[34].optionValue;
                }
                else
                {
                    this.设计内容34 = Dto设计点s[34].optionValue + ":" + Dto设计点s[34].name;
                }
            }
            catch { }
        }

        private void build尺寸(List<尺寸呈现dto> 尺寸呈现)
        {
            try { this.量体项目0 = 尺寸呈现[0].ITEM_NAME_CN; this.标准尺寸0 = 尺寸呈现[0].ITEM_FIT_VALUE.ToString(); this.成衣尺寸0 = 尺寸呈现[0].garmentSize.ToString(); this.客户量体值0 = 尺寸呈现[0].CUSTOMER_FIT_VALUE.ToString(); this.加减值0 = (尺寸呈现[0].IN_VALUE - 尺寸呈现[0].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目1 = 尺寸呈现[1].ITEM_NAME_CN; this.标准尺寸1 = 尺寸呈现[1].ITEM_FIT_VALUE.ToString(); this.成衣尺寸1 = 尺寸呈现[1].garmentSize.ToString(); this.客户量体值1 = 尺寸呈现[1].CUSTOMER_FIT_VALUE.ToString(); this.加减值1 = (尺寸呈现[1].IN_VALUE - 尺寸呈现[1].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目2 = 尺寸呈现[2].ITEM_NAME_CN; this.标准尺寸2 = 尺寸呈现[2].ITEM_FIT_VALUE.ToString(); this.成衣尺寸2 = 尺寸呈现[2].garmentSize.ToString(); this.客户量体值2 = 尺寸呈现[2].CUSTOMER_FIT_VALUE.ToString(); this.加减值2 = (尺寸呈现[2].IN_VALUE - 尺寸呈现[2].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目3 = 尺寸呈现[3].ITEM_NAME_CN; this.标准尺寸3 = 尺寸呈现[3].ITEM_FIT_VALUE.ToString(); this.成衣尺寸3 = 尺寸呈现[3].garmentSize.ToString(); this.客户量体值3 = 尺寸呈现[3].CUSTOMER_FIT_VALUE.ToString(); this.加减值3 = (尺寸呈现[3].IN_VALUE - 尺寸呈现[3].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目4 = 尺寸呈现[4].ITEM_NAME_CN; this.标准尺寸4 = 尺寸呈现[4].ITEM_FIT_VALUE.ToString(); this.成衣尺寸4 = 尺寸呈现[4].garmentSize.ToString(); this.客户量体值4 = 尺寸呈现[4].CUSTOMER_FIT_VALUE.ToString(); this.加减值4 = (尺寸呈现[4].IN_VALUE - 尺寸呈现[4].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目5 = 尺寸呈现[5].ITEM_NAME_CN; this.标准尺寸5 = 尺寸呈现[5].ITEM_FIT_VALUE.ToString(); this.成衣尺寸5 = 尺寸呈现[5].garmentSize.ToString(); this.客户量体值5 = 尺寸呈现[5].CUSTOMER_FIT_VALUE.ToString(); this.加减值5 = (尺寸呈现[5].IN_VALUE - 尺寸呈现[5].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目6 = 尺寸呈现[6].ITEM_NAME_CN; this.标准尺寸6 = 尺寸呈现[6].ITEM_FIT_VALUE.ToString(); this.成衣尺寸6 = 尺寸呈现[6].garmentSize.ToString(); this.客户量体值6 = 尺寸呈现[6].CUSTOMER_FIT_VALUE.ToString(); this.加减值6 = (尺寸呈现[6].IN_VALUE - 尺寸呈现[6].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目7 = 尺寸呈现[7].ITEM_NAME_CN; this.标准尺寸7 = 尺寸呈现[7].ITEM_FIT_VALUE.ToString(); this.成衣尺寸7 = 尺寸呈现[7].garmentSize.ToString(); this.客户量体值7 = 尺寸呈现[7].CUSTOMER_FIT_VALUE.ToString(); this.加减值7 = (尺寸呈现[7].IN_VALUE - 尺寸呈现[7].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目8 = 尺寸呈现[8].ITEM_NAME_CN; this.标准尺寸8 = 尺寸呈现[8].ITEM_FIT_VALUE.ToString(); this.成衣尺寸8 = 尺寸呈现[8].garmentSize.ToString(); this.客户量体值8 = 尺寸呈现[8].CUSTOMER_FIT_VALUE.ToString(); this.加减值8 = (尺寸呈现[8].IN_VALUE - 尺寸呈现[8].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目9 = 尺寸呈现[9].ITEM_NAME_CN; this.标准尺寸9 = 尺寸呈现[9].ITEM_FIT_VALUE.ToString(); this.成衣尺寸9 = 尺寸呈现[9].garmentSize.ToString(); this.客户量体值9 = 尺寸呈现[9].CUSTOMER_FIT_VALUE.ToString(); this.加减值9 = (尺寸呈现[9].IN_VALUE - 尺寸呈现[9].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目10 = 尺寸呈现[10].ITEM_NAME_CN; this.标准尺寸10 = 尺寸呈现[10].ITEM_FIT_VALUE.ToString(); this.成衣尺寸10 = 尺寸呈现[10].garmentSize.ToString(); this.客户量体值10 = 尺寸呈现[10].CUSTOMER_FIT_VALUE.ToString(); this.加减值10 = (尺寸呈现[10].IN_VALUE - 尺寸呈现[10].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目11 = 尺寸呈现[11].ITEM_NAME_CN; this.标准尺寸11 = 尺寸呈现[11].ITEM_FIT_VALUE.ToString(); this.成衣尺寸11 = 尺寸呈现[11].garmentSize.ToString(); this.客户量体值11 = 尺寸呈现[11].CUSTOMER_FIT_VALUE.ToString(); this.加减值11 = (尺寸呈现[11].IN_VALUE - 尺寸呈现[11].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目12 = 尺寸呈现[12].ITEM_NAME_CN; this.标准尺寸12 = 尺寸呈现[12].ITEM_FIT_VALUE.ToString(); this.成衣尺寸12 = 尺寸呈现[12].garmentSize.ToString(); this.客户量体值12 = 尺寸呈现[12].CUSTOMER_FIT_VALUE.ToString(); this.加减值12 = (尺寸呈现[12].IN_VALUE - 尺寸呈现[12].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目13 = 尺寸呈现[13].ITEM_NAME_CN; this.标准尺寸13 = 尺寸呈现[13].ITEM_FIT_VALUE.ToString(); this.成衣尺寸13 = 尺寸呈现[13].garmentSize.ToString(); this.客户量体值13 = 尺寸呈现[13].CUSTOMER_FIT_VALUE.ToString(); this.加减值13 = (尺寸呈现[13].IN_VALUE - 尺寸呈现[13].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目14 = 尺寸呈现[14].ITEM_NAME_CN; this.标准尺寸14 = 尺寸呈现[14].ITEM_FIT_VALUE.ToString(); this.成衣尺寸14 = 尺寸呈现[14].garmentSize.ToString(); this.客户量体值14 = 尺寸呈现[14].CUSTOMER_FIT_VALUE.ToString(); this.加减值14 = (尺寸呈现[14].IN_VALUE - 尺寸呈现[14].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目15 = 尺寸呈现[15].ITEM_NAME_CN; this.标准尺寸15 = 尺寸呈现[15].ITEM_FIT_VALUE.ToString(); this.成衣尺寸15 = 尺寸呈现[15].garmentSize.ToString(); this.客户量体值15 = 尺寸呈现[15].CUSTOMER_FIT_VALUE.ToString(); this.加减值15 = (尺寸呈现[15].IN_VALUE - 尺寸呈现[15].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目16 = 尺寸呈现[16].ITEM_NAME_CN; this.标准尺寸16 = 尺寸呈现[16].ITEM_FIT_VALUE.ToString(); this.成衣尺寸16 = 尺寸呈现[16].garmentSize.ToString(); this.客户量体值16 = 尺寸呈现[16].CUSTOMER_FIT_VALUE.ToString(); this.加减值16 = (尺寸呈现[16].IN_VALUE - 尺寸呈现[16].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目17 = 尺寸呈现[17].ITEM_NAME_CN; this.标准尺寸17 = 尺寸呈现[17].ITEM_FIT_VALUE.ToString(); this.成衣尺寸17 = 尺寸呈现[17].garmentSize.ToString(); this.客户量体值17 = 尺寸呈现[17].CUSTOMER_FIT_VALUE.ToString(); this.加减值17 = (尺寸呈现[17].IN_VALUE - 尺寸呈现[17].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目18 = 尺寸呈现[18].ITEM_NAME_CN; this.标准尺寸18 = 尺寸呈现[18].ITEM_FIT_VALUE.ToString(); this.成衣尺寸18 = 尺寸呈现[18].garmentSize.ToString(); this.客户量体值18 = 尺寸呈现[18].CUSTOMER_FIT_VALUE.ToString(); this.加减值18 = (尺寸呈现[18].IN_VALUE - 尺寸呈现[18].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目19 = 尺寸呈现[19].ITEM_NAME_CN; this.标准尺寸19 = 尺寸呈现[19].ITEM_FIT_VALUE.ToString(); this.成衣尺寸19 = 尺寸呈现[19].garmentSize.ToString(); this.客户量体值19 = 尺寸呈现[19].CUSTOMER_FIT_VALUE.ToString(); this.加减值19 = (尺寸呈现[19].IN_VALUE - 尺寸呈现[19].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目20 = 尺寸呈现[20].ITEM_NAME_CN; this.标准尺寸20 = 尺寸呈现[20].ITEM_FIT_VALUE.ToString(); this.成衣尺寸20 = 尺寸呈现[20].garmentSize.ToString(); this.客户量体值20 = 尺寸呈现[20].CUSTOMER_FIT_VALUE.ToString(); this.加减值20 = (尺寸呈现[20].IN_VALUE - 尺寸呈现[20].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目21 = 尺寸呈现[21].ITEM_NAME_CN; this.标准尺寸21 = 尺寸呈现[21].ITEM_FIT_VALUE.ToString(); this.成衣尺寸21 = 尺寸呈现[21].garmentSize.ToString(); this.客户量体值21 = 尺寸呈现[21].CUSTOMER_FIT_VALUE.ToString(); this.加减值21 = (尺寸呈现[21].IN_VALUE - 尺寸呈现[21].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目22 = 尺寸呈现[22].ITEM_NAME_CN; this.标准尺寸22 = 尺寸呈现[22].ITEM_FIT_VALUE.ToString(); this.成衣尺寸22 = 尺寸呈现[22].garmentSize.ToString(); this.客户量体值22 = 尺寸呈现[22].CUSTOMER_FIT_VALUE.ToString(); this.加减值22 = (尺寸呈现[22].IN_VALUE - 尺寸呈现[22].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目23 = 尺寸呈现[23].ITEM_NAME_CN; this.标准尺寸23 = 尺寸呈现[23].ITEM_FIT_VALUE.ToString(); this.成衣尺寸23 = 尺寸呈现[23].garmentSize.ToString(); this.客户量体值23 = 尺寸呈现[23].CUSTOMER_FIT_VALUE.ToString(); this.加减值23 = (尺寸呈现[23].IN_VALUE - 尺寸呈现[23].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目24 = 尺寸呈现[24].ITEM_NAME_CN; this.标准尺寸24 = 尺寸呈现[24].ITEM_FIT_VALUE.ToString(); this.成衣尺寸24 = 尺寸呈现[24].garmentSize.ToString(); this.客户量体值24 = 尺寸呈现[24].CUSTOMER_FIT_VALUE.ToString(); this.加减值24 = (尺寸呈现[24].IN_VALUE - 尺寸呈现[24].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目25 = 尺寸呈现[25].ITEM_NAME_CN; this.标准尺寸25 = 尺寸呈现[25].ITEM_FIT_VALUE.ToString(); this.成衣尺寸25 = 尺寸呈现[25].garmentSize.ToString(); this.客户量体值25 = 尺寸呈现[25].CUSTOMER_FIT_VALUE.ToString(); this.加减值25 = (尺寸呈现[25].IN_VALUE - 尺寸呈现[25].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目26 = 尺寸呈现[26].ITEM_NAME_CN; this.标准尺寸26 = 尺寸呈现[26].ITEM_FIT_VALUE.ToString(); this.成衣尺寸26 = 尺寸呈现[26].garmentSize.ToString(); this.客户量体值26 = 尺寸呈现[26].CUSTOMER_FIT_VALUE.ToString(); this.加减值26 = (尺寸呈现[26].IN_VALUE - 尺寸呈现[26].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目27 = 尺寸呈现[27].ITEM_NAME_CN; this.标准尺寸27 = 尺寸呈现[27].ITEM_FIT_VALUE.ToString(); this.成衣尺寸27 = 尺寸呈现[27].garmentSize.ToString(); this.客户量体值27 = 尺寸呈现[27].CUSTOMER_FIT_VALUE.ToString(); this.加减值27 = (尺寸呈现[27].IN_VALUE - 尺寸呈现[27].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目28 = 尺寸呈现[28].ITEM_NAME_CN; this.标准尺寸28 = 尺寸呈现[28].ITEM_FIT_VALUE.ToString(); this.成衣尺寸28 = 尺寸呈现[28].garmentSize.ToString(); this.客户量体值28 = 尺寸呈现[28].CUSTOMER_FIT_VALUE.ToString(); this.加减值28 = (尺寸呈现[28].IN_VALUE - 尺寸呈现[28].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目29 = 尺寸呈现[29].ITEM_NAME_CN; this.标准尺寸29 = 尺寸呈现[29].ITEM_FIT_VALUE.ToString(); this.成衣尺寸29 = 尺寸呈现[29].garmentSize.ToString(); this.客户量体值29 = 尺寸呈现[29].CUSTOMER_FIT_VALUE.ToString(); this.加减值29 = (尺寸呈现[29].IN_VALUE - 尺寸呈现[29].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目30 = 尺寸呈现[30].ITEM_NAME_CN; this.标准尺寸30 = 尺寸呈现[30].ITEM_FIT_VALUE.ToString(); this.成衣尺寸30 = 尺寸呈现[30].garmentSize.ToString(); this.客户量体值30 = 尺寸呈现[30].CUSTOMER_FIT_VALUE.ToString(); this.加减值30 = (尺寸呈现[30].IN_VALUE - 尺寸呈现[30].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目31 = 尺寸呈现[31].ITEM_NAME_CN; this.标准尺寸31 = 尺寸呈现[31].ITEM_FIT_VALUE.ToString(); this.成衣尺寸31 = 尺寸呈现[31].garmentSize.ToString(); this.客户量体值31 = 尺寸呈现[31].CUSTOMER_FIT_VALUE.ToString(); this.加减值31 = (尺寸呈现[31].IN_VALUE - 尺寸呈现[31].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目32 = 尺寸呈现[32].ITEM_NAME_CN; this.标准尺寸32 = 尺寸呈现[32].ITEM_FIT_VALUE.ToString(); this.成衣尺寸32 = 尺寸呈现[32].garmentSize.ToString(); this.客户量体值32 = 尺寸呈现[32].CUSTOMER_FIT_VALUE.ToString(); this.加减值32 = (尺寸呈现[32].IN_VALUE - 尺寸呈现[32].OUT_VALUE).ToString(); } catch { }
            try { this.量体项目33 = 尺寸呈现[33].ITEM_NAME_CN; this.标准尺寸33 = 尺寸呈现[33].ITEM_FIT_VALUE.ToString(); this.成衣尺寸33 = 尺寸呈现[33].garmentSize.ToString(); this.客户量体值33 = 尺寸呈现[33].CUSTOMER_FIT_VALUE.ToString(); this.加减值33 = (尺寸呈现[33].IN_VALUE - 尺寸呈现[33].OUT_VALUE).ToString(); } catch { }
        }

        private void build客户体态(DTO客户体态 dto客户体态)
        {
            try
            {
                this.性别 = dto客户体态.性别;
            }
            catch { }
            try
            {
                this.腹型 = dto客户体态.腹型;
            }
            catch { }
            try
            {
                this.背型 = dto客户体态.背型;
            }
            catch { }
            try
            {
                this.体型 = dto客户体态.体型;
            }
            catch { }
            try
            {
                this.肩型 = dto客户体态.肩型;
            }
            catch { }
            try
            {
                this.体重 = dto客户体态.体重;
            }
            catch { }
            try
            {
                this.身高 = dto客户体态.身高;
            }
            catch { }
            try
            {
                this.年龄 = dto客户体态.年龄;
            }
            catch { }
        }
    }

    public class DTO订单同步
    {
        public String ORDER_ID { get; set; }
        public String ORDER_NO { get; set; }
        public String ORDER_TYPE_CD { get; set; }
        public String SHOP_ID { get; set; }
        public String SHOP_NAME { get; set; }
        public String CUSTOM_ORDER_NO { get; set; }
        public String CUSTOM_NAME { get; set; }
        public String CUSTOM_MAKE_SHIRT { get; set; }
        public String TRANSIT_GROUP { get; set; }
        public String COUNTRY { get; set; }
        public String SLEEVE_FLAG { get; set; }
        public String CUSTOMER_ID { get; set; }
        public String CUSTOMER_NAME { get; set; }
        public String FACTORY_ID { get; set; }
        public String STYLE_ID { get; set; }
        public String REF_ORDER_ID { get; set; }
        public String SPECIAL_ORDER { get; set; }
        public String TRYON_ORDER { get; set; }
        public String FIT_STYLE_SIZE { get; set; }
        public String TAILOR_ID { get; set; }
        public String SHIPPING_DESTINATION { get; set; }
        public String ORDER_DATE { get; set; }
        public String PAYMENT_DATE { get; set; }
        public String PAYMENT_CONFIRM_DATE { get; set; }
        public String ORDER_ACCEPT_DATE { get; set; }
        public String ORDER_PRO_START_DATE { get; set; }
        public String ORDER_PRO_END_DATE { get; set; }
        public String ORDER_PACK_DATE { get; set; }
        public String ORDER_SHIPMENTS_DATE { get; set; }
        public String TARGET_DATE { get; set; }
        public String REAL_DATE { get; set; }
        public String ORDER_STATUS_CD { get; set; }
        public String ORDER_PRODUCE_STATUS_CD { get; set; }
        public String ORDER_QC34 { get; set; }
        public String ORDER_QC35 { get; set; }
        public String ORDER_QC36 { get; set; }
        public String ORDER_QC37 { get; set; }
        public String ORDER_NUMBER { get; set; }
        public String ORDER_MATERIAL_COST { get; set; }
        public String ORDER_DESIGN_COST { get; set; }
        public String ORDER_PROCESS_COST { get; set; }
        public String ORDER_PACK_COST { get; set; }
        public String ORDER_EXPRESS_COST { get; set; }
        public String ORDER_SELL_ACCOUNT { get; set; }
        public String ORDER_OTHER_COST { get; set; }
        public String URGENT_CD { get; set; }
        public String MATERIAL_SOURCE { get; set; }
        public String REMARKS { get; set; }
        public String DELETE_FLAG { get; set; }
        public String VERSION { get; set; }
        public String CREATE_DATE { get; set; }
        public String UPDATE_DATE { get; set; }
        public String CREATE_USER { get; set; }
        public String UPDATE_USER { get; set; }
        public String SEL_KBN { get; set; }
        public String PRINT_FLAG { get; set; }

        public DTO订单同步(DataRow dr) {
            this.ORDER_ID = dr["ORDER_ID"].ToString();
            this.ORDER_NO = dr["ORDER_NO"].ToString();
            this.ORDER_TYPE_CD = dr["ORDER_TYPE_CD"].ToString();
            this.SHOP_ID = dr["SHOP_ID"].ToString();
            this.SHOP_NAME = dr["SHOP_NAME"].ToString();
            this.CUSTOM_ORDER_NO = dr["CUSTOM_ORDER_NO"].ToString();
            this.CUSTOM_NAME = dr["CUSTOM_NAME"].ToString();
            this.CUSTOM_MAKE_SHIRT = dr["CUSTOM_MAKE_SHIRT"].ToString();
            this.TRANSIT_GROUP = dr["TRANSIT_GROUP"].ToString();
            this.COUNTRY = dr["COUNTRY"].ToString();
            this.SLEEVE_FLAG = dr["SLEEVE_FLAG"].ToString();
            this.CUSTOMER_ID = dr["CUSTOMER_ID"].ToString();
            this.CUSTOMER_NAME = dr["CUSTOMER_NAME"].ToString();
            this.FACTORY_ID = dr["FACTORY_ID"].ToString();
            this.STYLE_ID = dr["STYLE_ID"].ToString();
            this.REF_ORDER_ID = dr["REF_ORDER_ID"].ToString();
            this.SPECIAL_ORDER = dr["SPECIAL_ORDER"].ToString();
            this.TRYON_ORDER = dr["TRYON_ORDER"].ToString();
            this.FIT_STYLE_SIZE = dr["FIT_STYLE_SIZE"].ToString();
            this.TAILOR_ID = dr["TAILOR_ID"].ToString();
            this.SHIPPING_DESTINATION = dr["SHIPPING_DESTINATION"].ToString();
            this.ORDER_DATE = dr["ORDER_DATE"].ToString();
            this.PAYMENT_DATE = dr["PAYMENT_DATE"].ToString();
            this.PAYMENT_CONFIRM_DATE = dr["PAYMENT_CONFIRM_DATE"].ToString();
            this.ORDER_ACCEPT_DATE = dr["ORDER_ACCEPT_DATE"].ToString();
            this.ORDER_PRO_START_DATE = dr["ORDER_PRO_START_DATE"].ToString();
            this.ORDER_PRO_END_DATE = dr["ORDER_PRO_END_DATE"].ToString();
            this.ORDER_PACK_DATE = dr["ORDER_PACK_DATE"].ToString();
            this.ORDER_SHIPMENTS_DATE = dr["ORDER_SHIPMENTS_DATE"].ToString();
            this.TARGET_DATE = dr["TARGET_DATE"].ToString();
            this.REAL_DATE = dr["REAL_DATE"].ToString();
            this.ORDER_STATUS_CD = dr["ORDER_STATUS_CD"].ToString();
            this.ORDER_PRODUCE_STATUS_CD = dr["ORDER_PRODUCE_STATUS_CD"].ToString();
            this.ORDER_QC34 = dr["ORDER_QC34"].ToString();
            this.ORDER_QC35 = dr["ORDER_QC35"].ToString();
            this.ORDER_QC36 = dr["ORDER_QC36"].ToString();
            this.ORDER_QC37 = dr["ORDER_QC37"].ToString();
            this.ORDER_NUMBER = dr["ORDER_NUMBER"].ToString();
            this.ORDER_MATERIAL_COST = dr["ORDER_MATERIAL_COST"].ToString();
            this.ORDER_DESIGN_COST = dr["ORDER_DESIGN_COST"].ToString();
            this.ORDER_PROCESS_COST = dr["ORDER_PROCESS_COST"].ToString();
            this.ORDER_PACK_COST = dr["ORDER_PACK_COST"].ToString();
            this.ORDER_EXPRESS_COST = dr["ORDER_EXPRESS_COST"].ToString();
            this.ORDER_SELL_ACCOUNT = dr["ORDER_SELL_ACCOUNT"].ToString();
            this.ORDER_OTHER_COST = dr["ORDER_OTHER_COST"].ToString();
            this.URGENT_CD = dr["URGENT_CD"].ToString();
            this.MATERIAL_SOURCE = dr["MATERIAL_SOURCE"].ToString();
            this.REMARKS = dr["REMARKS"].ToString();
            this.DELETE_FLAG = dr["DELETE_FLAG"].ToString();
            this.VERSION = dr["VERSION"].ToString();
            this.CREATE_DATE = dr["CREATE_DATE"].ToString();
            this.UPDATE_DATE = dr["UPDATE_DATE"].ToString();
            this.CREATE_USER = dr["CREATE_USER"].ToString();
            this.UPDATE_USER = dr["UPDATE_USER"].ToString();
            this.SEL_KBN = dr["SEL_KBN"].ToString();
            this.PRINT_FLAG = dr["PRINT_FLAG"].ToString();
        }
    }

    public class DTO款式同步 {
        public String SYS_STYLE_ID { get; set; }
        public String STYLE_NO { get; set; }
        public String STYLE_CD { get; set; }
        public String STYLE_KBN { get; set; }
        public String STYLE_SOURCE { get; set; }
        public String STYLE_CATEGORY_CD { get; set; }
        public String REF_STYLE_ID { get; set; }
        public String STYLE_NAME_CN { get; set; }
        public String STYLE_NAME_EN { get; set; }
        public String STYLE_FIT_CD { get; set; }
        public String SYTLE_YEAR { get; set; }
        public String SYTLE_SEASON { get; set; }
        public String SYTLE_FABRIC_ID { get; set; }
        public String SYTLE_FABRIC_NO { get; set; }
        public String STYLE_COMPOSITION { get; set; }
        public String STYLE_DESCRIBE { get; set; }
        public String STYLE_COLOR_CD { get; set; }
        public String STYLE_COLOR_NAME { get; set; }
        public String STYLE_SIZE_GROUP_CD { get; set; }
        public String STYLE_SIZE_CD { get; set; }
        public String STYLE_MAKE_TYPE { get; set; }
        public String STYLE_FIT_BODY_TYPE { get; set; }
        public String STYLE_SEX_CD { get; set; }
        public String STYLE_STANDARD { get; set; }
        public String STYLE_BAR_CODE { get; set; }
        public String STYLE_DESIGNER_DATE { get; set; }
        public String STYLE_DESIGNER { get; set; }
        public Double STYLE_MATERIAL_NUMBER { get; set; }
        public Double STYLE_DESIGN_PRICE { get; set; }
        public Double STYLE_FACTORY_TOTAL_PRICE { get; set; }
        public Double STYLE_SHOP_TOTAL_PRICE { get; set; }
        public String REMARKS { get; set; }
        public String ENABLE_FLAG { get; set; }
        public String DELETE_FLAG { get; set; }
        public String VERSION { get; set; }
        public String CREATE_DATE { get; set; }
        public String UPDATE_DATE { get; set; }
        public int CREATE_USER { get; set; }
        public String UPDATE_USER { get; set; }

        public DTO款式同步(DataRow dr) {
            this.SYS_STYLE_ID = dr["SYS_STYLE_ID"].ToString();
            this.STYLE_NO = dr["STYLE_NO"].ToString();
            this.STYLE_CD = dr["STYLE_CD"].ToString();
            this.STYLE_KBN = dr["STYLE_KBN"].ToString();
            this.STYLE_SOURCE = dr["STYLE_SOURCE"].ToString();
            this.STYLE_CATEGORY_CD = dr["STYLE_CATEGORY_CD"].ToString();
            this.REF_STYLE_ID = dr["REF_STYLE_ID"].ToString();
            this.STYLE_NAME_CN = dr["STYLE_NAME_CN"].ToString();
            this.STYLE_NAME_EN = dr["STYLE_NAME_EN"].ToString();
            this.STYLE_FIT_CD = dr["STYLE_FIT_CD"].ToString();
            this.SYTLE_YEAR = dr["SYTLE_YEAR"].ToString();
            this.SYTLE_SEASON = dr["SYTLE_SEASON"].ToString();
            this.SYTLE_FABRIC_ID = dr["SYTLE_FABRIC_ID"].ToString();
            this.SYTLE_FABRIC_NO = dr["SYTLE_FABRIC_NO"].ToString();
            this.STYLE_COMPOSITION = dr["STYLE_COMPOSITION"].ToString();
            this.STYLE_DESCRIBE = dr["STYLE_DESCRIBE"].ToString();
            this.STYLE_COLOR_CD = dr["STYLE_COLOR_CD"].ToString();
            this.STYLE_COLOR_NAME = dr["STYLE_COLOR_NAME"].ToString();
            this.STYLE_SIZE_GROUP_CD = dr["STYLE_SIZE_GROUP_CD"].ToString();
            this.STYLE_SIZE_CD = dr["STYLE_SIZE_CD"].ToString();
            this.STYLE_MAKE_TYPE = dr["STYLE_MAKE_TYPE"].ToString();
            this.STYLE_FIT_BODY_TYPE = dr["STYLE_FIT_BODY_TYPE"].ToString();
            this.STYLE_SEX_CD = dr["STYLE_SEX_CD"].ToString();
            this.STYLE_STANDARD = dr["STYLE_STANDARD"].ToString();
            this.STYLE_BAR_CODE = dr["STYLE_BAR_CODE"].ToString();
            this.STYLE_DESIGNER_DATE = dr["STYLE_DESIGNER_DATE"].ToString();
            this.STYLE_DESIGNER = dr["STYLE_DESIGNER"].ToString();
            this.STYLE_MATERIAL_NUMBER = String.IsNullOrEmpty(dr["STYLE_MATERIAL_NUMBER"].ToString()) ? 0 : (Convert.ToDouble(dr["STYLE_MATERIAL_NUMBER"].ToString()));
            this.STYLE_DESIGN_PRICE = String.IsNullOrEmpty(dr["STYLE_DESIGN_PRICE"].ToString()) ? 0 : Convert.ToDouble(dr["STYLE_DESIGN_PRICE"].ToString());
            try
            {
                this.STYLE_FACTORY_TOTAL_PRICE = String.IsNullOrEmpty(dr["STYLE_FACTORY_TOTAL_PRICE"].ToString()) ? 0 : Convert.ToDouble(dr["STYLE_FACTORY_TOTAL_PRICE"].ToString());
            }
            catch { }
            try
            {
                this.STYLE_SHOP_TOTAL_PRICE = String.IsNullOrEmpty(dr["STYLE_SHOP_TOTAL_PRICE"].ToString()) ? 0 : Convert.ToDouble(dr["STYLE_SHOP_TOTAL_PRICE"].ToString());
            }
            catch { }

            this.REMARKS = dr["REMARKS"].ToString();
            this.ENABLE_FLAG = dr["ENABLE_FLAG"].ToString();
            this.DELETE_FLAG = dr["DELETE_FLAG"].ToString();
            this.VERSION = dr["VERSION"].ToString();
            this.CREATE_DATE = dr["CREATE_DATE"].ToString();
            this.UPDATE_DATE = dr["UPDATE_DATE"].ToString();
            try
            {
                this.CREATE_USER = Convert.ToInt32(dr["CREATE_USER"].ToString());
            }
            catch {
                this.CREATE_USER = 1;
            }

            this.UPDATE_USER = dr["UPDATE_USER"].ToString();
        }
    }

    public class DTO合同 {
        public int CONTRACT_ID { get; set; }
        public String CONTRACT_NO { get; set; }
        public int CUSTOMER_ID { get; set; }
        public String ORDER_TYPE_CD { get; set; }
        public DateTime CONTRACT_ISSUE_DATE { get; set; }
        public String CONTRACT_CURRENCY_CD { get; set; }
        public double CONTRACT_EXCHANGE_RATE { get; set; }
        public String CONTRACT_TRANSPORT_MODE { get; set; }
        public DateTime CONTRACT_DELIVERY_DATE { get; set; }
        public String CONTRACT_AUDIT_STATUS { get; set; }
        public String CONTRACT_STATUS { get; set; }
        public int CARTON_INFO_STATUS { get; set; }
        public int UNIT_COST_STATUS { get; set; }
        public int FINANCE_STATUS { get; set; }
        public int CONTRACT_SYNC_STATUS { get; set; }
        public int CONTRACT_SYNC_STATUS_MTM { get; set; }
        public int DEL_FLG { get; set; }
        public int VERSION { get; set; }
        public int CREATE_USER_ID { get; set; }
        public DateTime CREATE_DATE_TIME { get; set; }
        public int UPDATE_USER_ID { get; set; }
        public DateTime UPDATE_DATE_TIME { get; set; }

        public DTO合同(int CUSTOMER_ID,DateTime CREATE_DATE_TIME) {
            this.CONTRACT_ID = 2329;
            //  "SM.20200411.1674"
            this.CONTRACT_NO = FunctionHelper.generateBillNo_ERP("c_contract_custom_p", "CONTRACT_NO", "SM.", "0000");
            this.CUSTOMER_ID = CUSTOMER_ID;
            this.ORDER_TYPE_CD = "ORDER_TYPE-TYPE_20";
            this.CONTRACT_ISSUE_DATE = CREATE_DATE_TIME;
            this.CONTRACT_CURRENCY_CD = "QUOTATION_CURRENCY-USD";
            this.CONTRACT_EXCHANGE_RATE = 6.7;
            this.CONTRACT_TRANSPORT_MODE = "TRANSPORT_MODE-AIR_TRANSPORT";
            this.CONTRACT_DELIVERY_DATE = CREATE_DATE_TIME.AddDays(7);
            this.CONTRACT_AUDIT_STATUS = "AUDIT_STATUS-AUDIT_20";
            this.CONTRACT_STATUS = "ORDER_STATUS-OS_30";
            this.CARTON_INFO_STATUS = 1;
            this.UNIT_COST_STATUS = 0;
            this.FINANCE_STATUS = 0;
            this.CONTRACT_SYNC_STATUS = 0;
            this.CONTRACT_SYNC_STATUS_MTM = 1;
            this.DEL_FLG = 0;
            this.VERSION = 1;
            this.CREATE_USER_ID = 1;
            this.CREATE_DATE_TIME = CREATE_DATE_TIME;
            this.UPDATE_USER_ID = 1;
            this.UPDATE_DATE_TIME = CREATE_DATE_TIME;
        }
    }
}
